summary refs log tree commit diff
path: root/app/about/[name]
diff options
context:
space:
mode:
authorAshelyn Rose <git@tempest.dev>2023-05-09 14:09:05 -0600
committerAshelyn Rose <git@tempest.dev>2023-05-09 14:09:05 -0600
commit525bfe4e31f0724f332f139d1d3281bef057d5f3 (patch)
treea9be2ddde4b956fc0718437cf8193a1547e47c41 /app/about/[name]
parent2ad6dc443d026bb49b291f5e27f2f934649e8a4b (diff)
mobile layout
Diffstat (limited to 'app/about/[name]')
-rw-r--r--app/about/[name]/page.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/about/[name]/page.tsx b/app/about/[name]/page.tsx
index 625af62..411a2f0 100644
--- a/app/about/[name]/page.tsx
+++ b/app/about/[name]/page.tsx
@@ -6,6 +6,11 @@ import InfoBar from "~/components/InfoBar";
 import styles from "~/styles/index.module.css"
 import system from "~/config/system.json"
 
+export async function generateStaticParams() {
+  const memberSlugs = system.members.map(member => member.name.toLowerCase())
+  return memberSlugs.map((name: string) => ({ name }))
+}
+
 export default function MemberPage({ params: { name } }) {
   const member = system.members.find(member => member.name.toLowerCase() === name)
 
@@ -28,7 +33,7 @@ export default function MemberPage({ params: { name } }) {
             ))}
           </div>
         )}
-      </main >
+      </main>
     </>
   )
 }